import { Button } from 'antd';
import React from 'react';
import { useNavigate } from 'react-router-dom';

type Props = {};

export default function Test2(props: Props) {
  const navigate = useNavigate();
  return (
    <div>
      <Button onClick={() => navigate('/test1')}>跳转到test1</Button>
    </div>
  );
}
